package com.itheima.mapper;

import com.itheima.model.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CustomerMapper {
    @Select("select * from customers where idCard = #{idCard}")
    public Customer selectByIdCard(@Param("idCard") String idCard);

    @Select("select * from customers where idCard = #{id}")
    public Customer selectById(@Param("id") Long idCard);

}
